package com.example.demo.mapper.aaaa;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.aaaa.Demo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author gjy
 * @ClassName DemoMapper
 * @description
 * @date 2025/5/13 11:25
 */
@Mapper
public interface DemoMapper extends BaseMapper<Demo> {
    Demo getDemoById(Long id);

    List<Demo> selectByCondition(Map<String, Object> params);

    @Select("select id,demo_name, demo_date ,demo_desc_1 as demo_desc,create_time,update_time  from demo where id = #{id}")
    Demo getDemoById2(Long id);

    Page<Demo> selectPageList(@Param("page") Page<Demo> objectPage);
}
